package org.agile2soft.nexoma.tapestry.encoder;

import org.agile2soft.nexoma.controller.ExpedientDocController;
import org.agile2soft.nexoma.entity.ExpedientDoc;
import org.hibernate.SessionFactory;

import br.com.arsmachina.tapestrycrud.hibernate.encoder.HibernateIntegerEncoder;

public class ExpedientDocEncoder extends HibernateIntegerEncoder<ExpedientDoc> {

    public ExpedientDocEncoder(SessionFactory sessionFactory,
            ExpedientDocController controller) {
        super(sessionFactory, controller);
    }
//    public ExpedientDocEncoder(SessionFactory sessionFactory,
//            ExpedientDocController controller    ,
//            PrimaryKeyTypeService primaryKeyTypeService) {
//        super(sessionFactory, controller,primaryKeyTypeService);
//    }


    public String toLabel(ExpedientDoc expedient) {
        return String.valueOf(expedient.getId());
    }

}
